package com.citicbank.summary.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @RequestMapping("/hello")
    public String hello(){
        return "Hello World!";
    }


    @RequestMapping(value = "/hello/post",method = RequestMethod.POST)
    public String helloPost(String name,String age){
        return "Hello World!" + " " + name + " " + age;
    }
}
